package self.hoy.demo.cloud.sentinel.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;
import self.hoy.demo.cloud.sentinel.service.TestService;

/**
 * @author 三共小不
 * @date 2021/7/6
 */
@RestController
public class TestController {
    @Autowired
    private TestService service;

    @GetMapping("/hello/{name}")
    public String apiHello(@PathVariable String name) {
        return service.sayHello(name);
    }

}
